package com.ny.wlw;

public class Test01 {
    public static void main(String[] args) {
        Vehicle[] vehicles = new Vehicle[4];
        vehicles[0] = new Car("宝马", "X5");
        vehicles[1] = new Car("奔驰", "S");
        vehicles[2] = new Bike("HAHHA", "2");
        vehicles[3] = new Bike("LILI", "3");
        for (Vehicle vehicle : vehicles) {
            vehicle.drive();
        }
    }
}

